package de.tabuma.formcreator.entity;

import de.tabuma.formcreator.logik.*;
import java.util.*;

/**
 * @author $Author: $
 * @version $Revision: $
 * @since $Date: $
 */
public class FormGroup {
    private static Long counter = new Long(1);

    public FormGroup(int type) {
        this.type = type;
        this.formStructurList = new ArrayList<FormStructur>();
    }

    private long id;
    public long getId() {
        return id;
    }

    private int type;
    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }

    public boolean isChoice() {
        if(this.type == FormGroupFactory.CHOICE)
            return true;
        return false;
    }

    public boolean isAll() {
        if(this.type == FormGroupFactory.ALL)
            return true;
        return false;
    }

    public boolean isSequence() {
        if(this.type == FormGroupFactory.SEQUENCE)
            return true;
        return false;
    }

    private ArrayList<FormStructur> formStructurList;
    public ArrayList getFormStructurList() {
        return formStructurList;
    }


}
